#!usr/bin/env python3
# -*- conding: utf-8 -*-

class Car():
    def __init__(self,name,model):
        self.name = name
        self.model = model
    
    def __getattribute__(self,name): # 当访问实例的任何属性(注意方法也是属性)时 该方法会被调用
        print("__getattribute__",name)
        return super().__getattribute__(name)
    def drive(self):
        print(self.name,"driving")

class ElectriCar(Car):
    def __init__(self,name,model):
        super().__init__(name,model)

    def drive(self):        
        super().drive()
        print("use electri...")

car = Car("audi","S8")

print(car.name)
car.drive()

eltrCar = ElectriCar("tsl","models")
eltrCar.drive()

class Base1():
    def __init__(self):
        print("base1 .........")

class Base2():
    def __init__(self):
        print("base2 xxxxx")


class MyCls(Base1,Base2):
    def __init__(self):
        super().__init__()
        print("Mycls .....")

my = MyCls()

print(10.0//7,"哈哈") #商的部分 去掉余数

s = "哈哈"
print(s.encode("unicode_escape"))

score = 36904220

print("{:}".format(score))
